#pragma once

#include "common.h"
#include "bmpImage.h"
#include "Template.h"

#include <string>
#include <vector>
#include <algorithm>


//////////////////////////////////////////////////////////////////////////
// class Character
class Character
{
private:
	int m_Position;
	std::string m_Character;

public:
	Character(int pos, std::string c);
	std::string GetCharacter()					{	return m_Character;		}
	static bool CompareFunction(Character x, Character y);
};


//////////////////////////////////////////////////////////////////////////
// class CharacterRecognition
class CharacterRecognition
{
protected:
	Mask *m_Image;
	CharacterPatternSet *m_PS;

public:
	CharacterRecognition(Mask *Image, CharacterPatternSet *PS);
	~CharacterRecognition(void);

	std::string Run(int r0=0, int r1=0, int c0=0, int c1=0);

	
};
